package com.rocky.project.model.admin;

import com.rocky.project.model.base.BaseEntity;

/**
 * @hibernate.class table = "t_role_resource" dynamic-insert = "true" dynamic-update = "true"
 */
public class RoleResourceR extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6580054400987158877L;

	private Role role;
	private Resource resource;
	private int controlValue;
	
	/**
	 *  @hibernate.property column="c_controlvalue"  type="java.lang.Integer"
	 */
	public int getControlValue() {
		return controlValue;
	}
	public void setControlValue(int controlValue) {
		this.controlValue = controlValue;
	}
	/**
	 * @hibernate.many-to-one column = "c_resource_id" cascade="none"	 not-null = "true"
	 */
	public Resource getResource() {
		return resource;
	}
	public void setResource(Resource resource) {
		this.resource = resource;
	}
	/**
	 * @hibernate.many-to-one column = "c_role_id" cascade="none"	  not-null = "true"
	 */
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	
	

	
}
